#include <stdio.h>
#include <math.h>

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))

int main()
{
    int i, nCase;
    scanf("%d", &nCase);
    for (i = 1; i <= nCase; i++)
    {
        int a, b, c, delta;
        scanf("%d%d%d", &a, &b, &c);
        delta = b * b - 4 * a * c;
        printf("Case %d: ", i);
        if ((a == 0 && b == 0) || delta < 0) {
            printf("NULL\n");
        }
        else if (a == 0) {
            printf("%.2lf\n", - c / (double)b);
        }
        else if (delta == 0) {
            printf("%.2lf\n", - b / (2.0 * a));
        }
        else {
            double ans1 = (- b - sqrt(delta)) / (2.0 * a);
            double ans2 = (- b + sqrt(delta)) / (2.0 * a);
            printf("%.2lf %.2lf\n", MIN(ans1, ans2), MAX(ans1, ans2));
        }
    }
    return 0;
}
